package mc.bus;

import java.util.List;

import mc.dao.IAlergenManagerDAO;
import mc.domain.Alergen;

public class BazaAlergenow implements IBazaAlergenow {
	
	IAlergenManagerDAO baza;

	@Override
	public void deleteAlergen(Alergen usluga) {
		baza.deleteAlergen(usluga);

	}

	@Override
	public void deleteAlergen(int id) {
		baza.deleteAlergen(id);

	}

	@Override
	public Alergen getAlergenById(int id) {
		return baza.getAlergenById(id);
	}

	@Override
	public List<Alergen> getAllAlergeny() {
		return baza.getAllAlergeny();
	}

	@Override
	public void saveAlergen(Alergen u) {
		baza.saveAlergen(u);

	}

	public IAlergenManagerDAO getBaza() {
		return baza;
	}

	public void setBaza(IAlergenManagerDAO baza) {
		this.baza = baza;
	}
	
	

}
